package cn.itsource.openfeign;

import cn.dev33.satoken.annotation.SaIgnore;
import cn.itsource.domain.BillDto;
import cn.itsource.fallback.ValuationOpenFeignFallbackFactory;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @program fccar_tt
 * @Description
 * @Author TT
 * @Date 2024/09/04 17:39
 * @Version 1.0
 */
@FeignClient(value = "it-fccar-service-rule",fallbackFactory = ValuationOpenFeignFallbackFactory.class)
@Component
public interface ValuationOpenFeign {
    @GetMapping("/manager/rule/valuation/{mileage}")
    @SaIgnore
    JSONResult getValuation(@PathVariable("mileage") String mileage);

    @GetMapping("/manager/rule/getBillDto/{hour}")
    JSONResult getBillDto(@PathVariable("hour") Integer hour);

    @GetMapping("/manager/rule/getProportion")
    JSONResult getProportion();

}
